<%
var dt = new Date();
var y= dt.getFullYear();
var m= dt.getMonth();
var d= dt.getDate();
var day=dt.getDay();
var day2=new Array(7);
day2[0]="日";day2[1]="月";day2[2]="火";day2[3]="水";day2[4]="木";day2[5]="金";day2[6]="土";
var seconds = (dt.getHours() * 60 * 60) + (dt.getMinutes() * 60) + dt.getSeconds();
var comment = "当日注文受付中";
if (seconds > (9 * 60 * 60) + (50 * 60))
{
	comment = "当日注文受付終了";
}
%>

      <div id="sidebar">
        <div id="sidebar-day">
          <p> <%-y + "年" + (m + 1) + "月" + d + "日(" + day2[day] + ")" %> </p>
        </div>
        <div id="sidebar-isclosed">
          <p> <%- comment %> </p>
        </div>
        <div id="sidebar-menu">
          <a href="http://www.tamagoya.co.jp/menu_list.html"  target="_blank" id="sidebarMenuLink">メニューはこちら</a>
        </div>
      </div>